<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">

    *{
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #box{
        width: 600px;
        height: 500px;
        border: 1px solid #999;
        overflow: hidden;
        margin: 0 auto;
        margin-top: 50px;
        border-radius: 50px;
    }

    #box img{
        width: 100px;
        height: 70px;
    }

    #box li{
        height: 60px;
        padding: 20px;
    }

    .left{float:left;}
    .right{
        width: 400px;
        float: right;
    }

</style>

<script src="./jquery-3.3.1.min.js"></script>

</head>
<body>

    <h1>JQ 新闻滚动效果</h1>
    <hr>

    <div id="box">
        <ul id="newlist">
            <li>
                        <div class="left"><img src="./imgs/mm001.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻1</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#1">【查看详情】</a></p>
                </div>
            </li>
            <li>
                <div class="left"><img src="./imgs/mm002.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻2</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#2">【查看详情】</a></p>
                </div>
            </li>
            <li>
                <div class="left"><img src="./imgs/mm003.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻3</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#3">【查看详情】</a></p>
                </div>
            </li>
            <li>
                <div class="left"><img src="./imgs/mm004.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻4</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#4">【查看详情】</a></p>
                </div>
            </li>
            <li>
                <div class="left"><img src="./imgs/mm005.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻5</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#5">【查看详情】</a></p>
                </div>
            </li>
            <li>
                <div class="left"><img src="./imgs/mm006.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻6</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#6">【查看详情】</a></p>
                </div>
            </li>
            <li>
                <div class="left"><img src="./imgs/mm007.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻7</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#7">【查看详情】</a></p>
                </div>
            </li>
            <li>
                <div class="left"><img src="./imgs/mm008.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻8</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#8">【查看详情】</a></p>
                </div>
            </li>
            <li>
                <div class="left"><img src="./imgs/mm009.jpg" alt=""></div>
                <div class="right">
                    <h3>爆炸新闻9</h3>
                    <p>腾讯娱乐白皮书上新，全网数据和媒体洞察铸就娱乐行业风向标<a href="#9">【查看详情】</a></p>
                </div>
            </li>
        </ul>
    </div>


    <script>

        $(function(){
            setInterval(function(){
                $('#newslist li')
                .last().fadeTo(0,0).hide()
                .prependTo('#newslist').slideDown(1000).fadeTo(1500,1);
            }, 3000);
        });

    </script>



</body>
</html>




